/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package excom;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import ui.MainForm;

/**
 *
 * @author chanhpm
 */
public class JContactBox extends JBox{
 public JContactBox(){
        super();
        initComponents();
    }
 
    private JButton newContact;
    private JButton updateContact;
    private JButton deleteContact;
    private JButton searchContact;
    public void initComponents(){
        newContact = createBarButton("New",new ImageIcon(MainForm.ResourceDir + "contact.gif"));
        updateContact = createBarButton("Update",new ImageIcon(MainForm.ResourceDir + "update.png"));
        deleteContact = createBarButton("Delete",new ImageIcon(MainForm.ResourceDir + "delete_1.png"));
        searchContact = createBarButton("Search", new ImageIcon(MainForm.ResourceDir + "Search.png"));
        fireJBoxEvent(newContact);
        fireJBoxEvent(updateContact);
        fireJBoxEvent(deleteContact);
        fireJBoxEvent(searchContact);
        this.add(newContact);
        this.add(updateContact);
        this.add(deleteContact);
        this.add(searchContact);
    }
}
